﻿<controls:ChildWindow x:Class="Fractals.FavoritesWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
					  xmlns:Controls="clr-namespace:ArgusControls;assembly=ArgusControls"
					  xmlns:ColoredControls="clr-namespace:ArgusControls.ThemeControls;assembly=ArgusControls"
           Width="400" Height="300" 
           Title="{Binding Resource.FavoritesWindowTitle, Mode=OneWay, Source={StaticResource LocalizedStrings}}" Background="Black" Foreground="White">
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="179*"/>
			<RowDefinition Height="Auto"/>
		</Grid.RowDefinitions>
		<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Grid.Row="1">
			<controls:TreeView x:Name="treeView" Background="{x:Null}" Foreground="White" BorderBrush="{x:Null}" SelectedItemChanged="treeView_SelectedItemChanged"/>
		</ScrollViewer>
		<StackPanel Orientation="Horizontal" VerticalAlignment="Bottom" Margin="5" Grid.Row="2" FlowDirection="RightToLeft">
			<ColoredControls:ThemeButton x:Name="bSave" Content="{Binding Resource.FavoritesWindowButtonSave, Mode=OneWay, Source={StaticResource LocalizedStrings}}" Margin ="0,0,5,0" Click="bSave_Click"/>
			<ColoredControls:ThemeButton x:Name="bOpen" Content="{Binding Resource.FavoritesWindowButtonOpen, Mode=OneWay, Source={StaticResource LocalizedStrings}}" Margin ="0,0,5,0" Click="bOpen_Click"/>
			<ColoredControls:ThemeButton x:Name="bCancel" Content="{Binding Resource.FavoritesWindowButtonCancel, Mode=OneWay, Source={StaticResource LocalizedStrings}}" Click="bCancel_Click"/>
		</StackPanel>
		<TextBox x:Name="tbRename" Margin="5" Background="Black" Foreground="White" BorderBrush="White"/>
	</Grid>
</controls:ChildWindow>